﻿namespace LinkedTU.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using LinkedTU.Common.Constants;

    public class Job : BaseDbEntity
    {
        [Key]
        public int JobId { get; set; }

        [Required]
        [MinLength(ValidationConstants.MinJobPositionTitleLength)]
        [MaxLength(ValidationConstants.MaxJobPositionTitleLength)]
        public string Title { get; set; }

        public string Description { get; set; }

        public DateTime StartDate { get; set; }

        public DateTime? EndDate { get; set; }

        public int Order { get; set; }

        public virtual Country Country { get; set; }

        public virtual City City { get; set; }

        public virtual ProfileInfo User { get; set; }

        public virtual Company Company { get; set; }
    }
}
